<div class="side">
  <a data-id="companyTree" class="side-handle"><i class="icon-caret-left"></i></a>
  <div class="side-body">
    <div class="panel panel-sm">
        <div class="panel-heading nobr"><i class="icon-building"></i> <strong>用户组结构</strong></div>
        <div class="panel-body">
            <ul class="tree treeview">
                <?php foreach($groupList as $key => $value): ?>
                <li><a id="dept3" href="<?php echo U('admin/user/index', array('gid' => $value['id']));?>"><?php echo $value['group_name']; ?></a></li>
                <?php endforeach; ?>
            </ul>
        </div>
    </div>
  </div>
</div>
<script>setTreeBox();</script>